//
//  TBCHotStationCollectionViewCell.m
//  待定
//
//  Created by EricXie on 15/11/5.
//  Copyright © 2015年 BoyaLee. All rights reserved.
//

#import "TBCHotStationCollectionViewCell.h"
#import <UIImageView+WebCache.h>

@implementation TBCHotStationCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if ([super initWithFrame:frame]) {
        [self createSubViews];
    }
    
    return self;
}

- (void)createSubViews
{
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    _imageV.backgroundColor = [UIColor lightGrayColor];
    _imageV.userInteractionEnabled = YES;
    _imageV.layer.masksToBounds = YES;
    _imageV.layer.cornerRadius = 10;
    [self addSubview:self.imageV];
}

- (void)setRadio:(TBCRadioListModel *)radio
{
    _radio = radio;
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:_radio.coverimg]];
}

@end
